<?php

class PostControllerOutput {
	public $m_BloggHtml= "";
} 

class PostController
{
	public function DoControll(Database $db, BloggList $bloggList)
	{
		$bloggView = new BloggView();
		$blogg = navigationView::getSelectedPost($bloggList, $db);
		
		 $outPut = new PostControllerOutput();
		 $outPut -> m_BloggHtml = $bloggView->showPost($blogg);
		 return $outPut;
	}
}
